<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h3>son 页面</h3> <br/>
    <button id="btn">传递message</button>
</body>
<script>
    const btn = document.getElementById('btn');
    btn.onclick = ()=>{
        window.opener.postMessage('son message')
    } 
</script>
</html>